package com.dingreading.cloud.subject.service;

import com.dingreading.cloud.common.util.PageUtil;
import com.dingreading.cloud.subject.dto.SubjectLessonIssueDto;
import com.dingreading.cloud.subject.entity.SubjectLessonIssue;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;

import java.util.List;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2024-02-26
 */
public interface SubjectLessonIssueService extends IService<SubjectLessonIssue> {

    Page<SubjectLessonIssueDto> pageList(
            PageUtil pageUtil, String storeUid, String staffUid, String keywords, String beginTime, String endTime,
            Integer status, String uid
    );

    // 查询员工当日发起意见总数
    long todayIssueCnt(String storeUid, String staffUid);

    // 员工获取已处理但未读取的意见数量
    List<SubjectLessonIssue> getUnreadIssueNum(String storeUid, String staffUid);

    // 将员工的已处理但未读取的意见 全部更新为已读取
    boolean updateReadStatus(String storeUid, String staffUid);
}
